import { createSSRApp } from 'vue'
import * as Pinia from 'pinia'
import App from './App.vue'
import tmui from './tmui'
import envConfig from './common/envConfig'
import appEnv from './utils/request'

export default function createApp() {
  const app = createSSRApp(App)
  app.use(Pinia.createPinia())
  app.use(tmui).use(envConfig)
  app.use(appEnv)
  return {
    app,
    Pinia
  }
}
